﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AppManager.Model
{
    public class Message : BaseModel
    {
        public int ProjectId { get; set; }
        public string Content { get; set; }
        public string Data { get; set; }
        /// <summary>
        /// 過期時間，默認的話就是+1天
        /// </summary>
        public DateTime ExpirseDate { get; set; }

        /// <summary>
        /// messageDevice的發送記錄 (google|signalr|ios)統計
        /// </summary>
        public string MdSize { get; set; }

        [NotMapped]
        public Project Project { get; set; }
        [NotMapped]
        public List<MessageDevice> Devices { get; set; }
    }
}
